<?php
include dirname(__FILE__) . '/../../../config/config.php';
?>
<div class='card-caption'>
    <div class='cap-nav clearfix'>
        <a class='cap-nav-item' href='javascript:;' onclick="subTabSwitch(1);">基础设置</a>
        <a class='cap-nav-item' href='javascript:;' onclick="subTabSwitch(2);">横幅设置</a>
    </div>
</div>
<div class="card-subtab" id="card7-subtab1">
    <div style="width: 40%;float:left">
        <div style="padding:20px 22px;">
            <div class="gs-label gs-label-h">微店名称</div>
            <div class="gs-text">
                <input type="text" id="set-form-title" />
            </div>
            <div class="gs-label gs-label-h">微代理返点</div>
            <div class="gs-text">
                <input type="text" id="set-form-proxypoint" />
            </div>
            <!--
                        <div class="gs-label gs-label-h">APPSECRET</div>
                        <div class="gs-text">
                            <input type="text" id="set-form-appsecret" />
                        </div>
                        <div class="gs-label gs-label-h">PARTNER ID</div>
                        <div class="gs-text">
                            <input type="text" id="set-form-partnerid" />
                        </div>            
                        <div class="gs-label gs-label-h">PAY SIGN KEY</div>
                        <div class="gs-text">
                            <input type="text" id="set-form-paysignkey" />
                        </div>-->
            <!--            <div class="gs-label gs-label-h">关注自动回复</div>
                        <span class="frm_textarea_box" style="height:120px;">
                            <textarea class="js_desc frm_textarea" id="set-form-subscribe-text" style="height:120px;"></textarea>
                        </span>-->
            <div id="_gmess_edit" style="text-align: center;margin-top: 15px;">
                <a class="wd-btn primary" onclick="set1Save()" style="margin-left: 0">保存</a>
            </div>
        </div>
    </div>
    <div style="width: 60%;float:left">
        <div style="padding:20px 22px;">
            <div class="gs-label gs-label-h clearfix">
                关键字回复
                <a class="wd-btn primary small addAutoReplyKey" href="#addAutoRepKey-form" style="margin-left: 0;float:right">添加关键字</a>
            </div>
            <div class="clearfix">
                <div id="key-reply-ulwrapp" style="width: 200px;float: left;overflow: auto;max-height:309px;
                     box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
                     border: 1px solid #D4D4D4;
                     border-bottom: none;
                     border-left: none;">
                    <ul class="key-reply-ul"></ul>
                </div>
                <div style="margin-left: 215px;">
                    <div id="_gmess_"></div>
                    <div id="_gmess_edit" style="text-align: center;margin-top: 15px;">
                        <a id="selectgmess" class="wd-btn primary fancybox.ajax" data-fancybox-type="ajax" href="<?php echo $config->shoproot; ?>?/Wdmin/GmessList/" style="margin-left: 0">选择图文</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="addAutoRepKey-form" style="width: 200px;padding:20px 50px;display: none;">
        <div class="gs-label gs-label-h" style="text-align: center;">关键字名称</div>
        <div class="gs-text">
            <input type="text" id="set-form-key1" />
        </div>
        <div id="_gmess_edit" style="text-align: center;margin-top: 15px;">
            <a class="wd-btn primary" onclick="AutoRepKeySave()" style="margin-left: 0">保存</a>
        </div>
    </div>
</div>
<div class="card-subtab" id="card7-subtab2">
    <form style="padding:20px 22px;" id='bannerImgWra'>
        <div class="gs-label gs-label-h">首页顶部横幅</div>
        <div id='cat0imgd' class='clearfix'>
            <a href='' target="_blank"><img id='cat0img' src='' /></a>
            <div class="gs-text" style='width: 350px;float:left'>
                <input type="text" name="" id="cat0img-href" placeholder="超链接" />
            </div>
            <a class="wd-btn primary" id='cat0-up' href="javascript:;" style="margin-left: 10px;float:left;height:29px;line-height: 29px;">点击选择图片</a>
        </div>

        <div class="gs-label gs-label-h">奶粉分类横幅</div>
        <div id='cat0imgd' class='clearfix'>
            <a href='' target="_blank"><img id='cat1img' src='' /></a>
            <div class="gs-text" style='width: 350px;float:left'>
                <input type="text" name="" id="cat1img-href" placeholder="超链接" />
            </div>
            <a class="wd-btn primary" id='cat1-up' href="javascript:;" style="margin-left: 10px;float:left;height:29px;line-height: 29px;">点击选择图片</a>
        </div>

        <div class="gs-label gs-label-h">纸尿裤分类横幅</div>
        <div id='cat0imgd' class='clearfix'>
            <a href='' target="_blank"><img id='cat2img' src='' /></a>
            <div class="gs-text" style='width: 350px;float:left'>
                <input type="text" name="" id="cat2img-href" placeholder="超链接" />
            </div>
            <a class="wd-btn primary" id='cat2-up' href="javascript:;" style="margin-left: 10px;float:left;height:29px;line-height: 29px;">点击选择图片</a>
        </div>
        
        <div class="gs-label gs-label-h">童年时光分类横幅</div>
        <div id='cat0imgd' class='clearfix'>
            <a href='' target="_blank"><img id='cat3img' src='' /></a>
            <div class="gs-text" style='width: 350px;float:left'>
                <input type="text" name="" id="cat3img-href" placeholder="超链接" />
            </div>
            <a class="wd-btn primary" id='cat3-up' href="javascript:;" style="margin-left: 10px;float:left;height:29px;line-height: 29px;">点击选择图片</a>
        </div>
    </form>
</div>